<?php if(!defined('IN_PISCES')){exit('Access Denied.');}?>
<script language="javascript" src="{$this->data['baseurl']}js/jquery/jquery.js"></script>
<script language="javascript" src="{$this->data['baseurl']}js/jquery/form.js"></script>
<script language="javascript" src="{$this->data['baseurl']}js/utils.js"></script>
<script type="text/javascript">
var successFun=function(res){
if(res.code==200){
	document.location	= res.data.forward;
}else{
	//alert('出错了，请重新尝试！');
}
}
$(document).ready(function() { 
	var updateOptions	= {dataType:'json',error:doError,success:doSuccess}
    $('#form').ajaxForm(updateOptions); 
}); 
</script>
<div class="setup">
<form id="form" action="{url('User','SaveSetup')}" method="post">
<table class="tbl-setup">
	<tr valign="bottom"><td width="60">昵称：</td><td><input class="input" type="text" name="username" /><span etype='error_info' class="error_info" id="username_info"></span></td></tr>
	<tr valign="bottom"><td>支付宝：</td><td><input class="input" type="text" name="alipay_account" value="{$this->data['user']['alipay_account']}" /><span etype='error_info' class="error_info" id="alipay_account_info">{if $this->data['return']['rate']>0}返现的金额将会提取到你设置的支付宝账号中，{/if}设定后不能修改，请正确填写</span></td></tr>
	<tr><td></td><td><input type="submit" value="确定" />&nbsp;&nbsp;<a href="{url('User','Logout')}">下次再登录</a></td></tr>
</table>
</form>
</div>